import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
//找24和20的公倍数,第202420242024个
public class Main {
    public static void main(String[] args) {
        Scanner zh=new Scanner(System.in);
        long n=202420242024L;
//        long n = 14L;

        //System.out.println(sum);
        List<Integer> l=new LinkedList<>();
        for(int i=1;i<121;i++) {
            if(i%20==0||i%24==0)l.add(i);
        }
        for (int i = 0;i< l.size();i++) {
            System.out.print(l.get(i)+" ");
        }
        System.out.println();
        //System.out.println(l);
        long num=n/l.size();
        long del=n%l.size();
        System.out.println("num: "+num);
        System.out.println("del: "+del);
        //System.out.println(num+" "+del);
        System.out.println(num*120+l.get((int)del-1));
        //System.out.println("2429042904288");
        System.out.println();

    }
}